var CALLINLEN = $('[role-alert="callin"]').length,
    cookie = require('../modules/$.cookie'),
    call_pass = $('.call_pass').val();

notifyMe();
//订阅消息通知
function notifyMe() {
    // 先检查浏览器是否支持
    if ("Notification" in window){
        Notification.requestPermission()
    }
}
//退出登录
// $('body')
// .on('click','.ui-header-exit',function(){
//     var clientId = $.cookie('clientId');
//     if(clientId){
//         $.ajax({
//             url: '/apis/api/Softphone/Logoff?clientId=' + clientId,
//             type: 'get',
//             data: '',
//             dataType: "xml",
//             success: function(res){
//                 $.cookie('clientId', null, { expires: -1, path: '/', domain: '.gzclearing.com' });
//             },
//             error: function(error){

//             }
//         });
//     }
//     setTimeout(function(){
//         window.location.href = '/login/index';
//     }, 1000);
// })
toastr.options = {
    "closeButton": false,
    "debug": false,
    "newestOnTop": true,
    "progressBar": false,
    "positionClass": "toast-center-center",
    "preventDuplicates": false,
    "onclick": null,
    "showDuration": "300",
    "hideDuration": "1000",
    "timeOut": "5000",
    "extendedTimeOut": "1000",
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
}
